package com.zhijiang.common.util.TimeTaskUtil;

import com.zhijiang.common.util.ApiResult;
import com.zhijiang.hospital.entrty.dto.EmployeeDto;
import com.zhijiang.hospital.service.EmployeeDtoService;
import com.zhijiang.hospital.service.MeetingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * @author 75936
 * @version 1.0
 * @project zhiJiangHealthBureau
 * @description
 * @date 2023-01-10 20:12:36
 */
//@Configuration
//@EnableScheduling
//public class TimeTask {
//    @Autowired
//    private EmployeeDtoService employeeDtoService;
//
//    @Scheduled(cron = "0/5 * * * * *")
//    public List<EmployeeDto> scheduledTask(String mCode){
//        List<EmployeeDto> singInEmployee = employeeDtoService.findSingInEmployee(mCode);
//        return singInEmployee;
//    }
//}
//@Component
//public class TimeTask {
//    @Autowired
//    EmployeeDtoService employeeDtoService;
//
//
//    @Scheduled(cron="*/5 * *  * * ? ")   //每5秒执行一次
//    public void execute(){
//
//    }
//}
